package io.xxx.mario.task;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.xxx.mario.common.DateFormats;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class PushDetail {

    @TableId
    private Long id;

    private Long taskId;

    private ReceiverType receiverType;

    private Long receiverId;

    private Integer messageCount;

    private Integer failedCount;

    /**
     * 消息发送是否全部成功
     */
    private boolean succeed;

    /**
     * 消息发送是否全部失败
     */
    private boolean failed;

    @JsonFormat(pattern = DateFormats.DEFAULT)
    private LocalDateTime createdTime;

    @JsonFormat(pattern = DateFormats.DEFAULT)
    private LocalDateTime updatedTime;
}
